<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<!-- 开发环境版本，包含了有帮助的命令行警告 -->
		<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
	</head>
	<body>
		<div id="app">
			 用户名: {{name}} <br>
			 头像: <img width="80px" v-bind:src="head" >
			 头像2: <img :src="head" >
		</div>
	</body>
	
	<script>
		
		var vue = new Vue({
			el:"#app",
			data:{
				name:"天下第二",
				head:"http://www.baidu.com/img/bd_logo.png"
			}
		});
		
	</script>
</html>
